//
//  common.h
//  lvfj
//
//  Created by 吕飞俊 on 15/9/25.
//  Copyright © 2015年 Goudu KuaiEx Technology(Shenzhen)Co.,ltd. All rights reserved.
//

#ifndef Common_h
#define Common_h

// 屏幕大小
#define     ScreenHeight    [UIScreen mainScreen].bounds.size.height
#define     ScreenWidth     [UIScreen mainScreen].bounds.size.width

/// appStoreId
#define KAppstoreLinkId(appStoreId) [NSString stringWithFormat:@"https://itunes.apple.com/cn/app/id%@?l=zh&ls=1&mt=8",appStoreId]

//自定义Log
#ifdef DEBUG
#define lvfjLog(...) NSLog(__VA_ARGS__)
#else
#define lvfjLog(...)
#endif


#define SINGLETON_METHOD_DECALRE(_ClassName) \
/**单例方法*/\
+(_ClassName *)sharedInstance

#define SYNCTHESIZE_SINGLETON_FOR_CLASS(_ClassName) \
\
+(_ClassName *)sharedInstance\
{\
static _ClassName *sharedInstance = nil;\
static dispatch_once_t onceToken;\
dispatch_once(&onceToken, ^{\
sharedInstance = [[_ClassName alloc] init];\
});\
return sharedInstance;\
}

#endif /* common_h */

